package com.example.baselibrary.Utils;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class StringSplitUtils {

    private static StringSplitUtils instance;
    private List<String> stringList;


    public static synchronized StringSplitUtils getInstance() {
        if (null == instance) {
            instance = new StringSplitUtils();
        }
        return instance;
    }

    //特定字符切割  2A1106000400000000002F
    public List<String> StingQuerSpl(String s) {
        String ss = s;
        if (null == stringList) {
            stringList = new ArrayList<>();
        }
        stringList.clear();

        while (ss.length() > 0) {
            stringList.add(ss.substring(0, 2));
            ss = ss.substring(2, ss.length());
        }

        return stringList;
    }
}
